package com.dzsw.netty.hb;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class BizHandler extends SimpleChannelInboundHandler<String> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        log.info(" ====== > [BIZ] message received : " + msg);
        ctx.channel().writeAndFlush("Biz message received.");
    }
}
